package Chapter2.Comparing.c9;

public class ThreadTest2 implements Runnable{
    @Override
    public void run() {
        while (true) {
            System.out.println("9999");
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    public static void main(String[] args) {
        ThreadTest2 threadTest2 = new ThreadTest2();
        Thread thread = new Thread(threadTest2);
        thread.start();

    }
}
